//
//  SRManager.h
//  SportRing
//
//  Created by mykoma on 14-4-12.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SRMe.h"
#import "SRDataBaseSource.h"
#import "LGBluetoothCentralManager.h"

@interface SRManager : NSObject

CWL_DECLARE_SINGLETON_FOR_CLASS_WITH_ACCESSOR(SRManager, sharedInstance);

@property (nonatomic, strong) NSMutableArray * findDevices;

@property (nonatomic, strong) YMSCBPeripheral * peripheral;

- (void)setCurrentPeripheralName:(NSString *)peripheralName;

-(void)connectToDeviceWithBlock:(CompletionBlock)block;

-(void)updateCharacteristicUUID:(CBUUID *)uuid
                      withValue:(NSData *)data
                     completion:(CompletionBlock)block;

-(void)disconnectWithDevice;

-(void)readyToStartUp;

@end
